FROM registry.forchange.cn/public/python:7-slim

COPY . /app

WORKDIR /app

ENV PIPENV_VENV_IN_PROJECT=1

RUN pip install pipenv -i https://pypi.tuna.tsinghua.edu.cn/simple && \
    pipenv install -i https://pypi.tuna.tsinghua.edu.cn/simple --skip-lock

RUN chmod 2775  -R /app

EXPOSE 8080

CMD ["pipenv", "run", "gunicorn", "wsgi:app", "-c", "./gunicorn.conf.py"]

